//TOWN SCRIPT TEMPLATE

begintownscript;

variables;

body;

beginstate INIT_STATE;
//called when the party enters the town
toggle_quest(0,0);
text_bubble_on_char(8,"Haha!");
text_bubble_on_char(16,"Huzzah!");
text_bubble_on_char(17,"They did it!");
force_instant_terrain_redraw();
pause(20);
set_floor(36,20,71);
set_floor(36,21,71);
set_floor(36,22,71);
set_floor(37,20,71);
set_floor(37,21,71);
set_floor(37,22,71);
set_floor(38,20,71);
set_floor(38,21,71);
set_floor(38,22,71);
force_instant_terrain_redraw();
pause(10);
erase_char(16);
erase_char(17);
force_instant_terrain_redraw();
text_bubble_on_char(8,"");
text_bubble_on_char(8,"Aaah!");
force_instant_terrain_redraw();
pause(15);
erase_char(8);
pause(10);
text_bubble_on_char(get_ran(1,0,3),"Let's go after them!");
break;

beginstate EXIT_STATE;
//called when the party leaves the town

break;

beginstate START_STATE;
//called every turn when the party is in the town

break;

beginstate 10;
move_to_new_town(4,16,16);
break;